
using ZR.Model.Models.ProductionControl;

namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 查询对象
    /// </summary>
    public class CksBarcodeRelRecQueryDto : PagerInfo 
    {
        /// <summary>
        /// 主产品码
        /// </summary>
        public string PrimaryCode { get; set; }

        /// <summary>
        /// 子产品码
        /// </summary>
        public string SubcodeCode { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }

        /// <summary>
        /// 站点编号
        /// </summary>
        public string StationCode { get; set; }
    }

    /// <summary>
    /// 输入输出对象
    /// </summary>
    public class CksBarcodeRelRecDto {

        [Required(ErrorMessage = "ID不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "设备不能为空")]
        public int PlcID { get; set; }

        [Required(ErrorMessage = "DB块不能为空")]
        public int ReadDB { get; set; }

        [Required(ErrorMessage = "主码不能为空")]
        public string PrimaryCode { get; set; }

        [Required(ErrorMessage = "子码不能为空")]
        public string SubcodeCode { get; set; }

        [Required(ErrorMessage = "类型不能为空")]
        public int Type { get; set; }

        public DateTime? CreatedTime { get; set; }

        public bool IsDeleted { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }

        /// <summary>
        /// 站点编号
        /// </summary>
        public string StationCode { get; set; }
    }
}